package com.sokal.easycare.modules.shares.entity;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sokal.easycare.common.persistence.FileEntity;

/** 
* 经验分享附件Entity
* @author lihaipei
* @date 2017年3月30日 下午1:22:32 
*/
public class ExprShareFile extends FileEntity<ExprShareFile> {

	private static final long serialVersionUID = 1L;
	private ExperienceSharing exprSharing; //经验分享
	
	public ExprShareFile() {
		super();
	}

	public ExprShareFile(String id) {
		super(id);
	}

	public ExprShareFile(ExperienceSharing exprSharing) {
		this.exprSharing = exprSharing;
	}

	@NotNull(message = "经验分享不能为空")
	@JsonIgnore
	public ExperienceSharing getExprSharing() {
		return exprSharing;
	}
	
	public void setExprSharing(ExperienceSharing exprSharing) {
		this.exprSharing = exprSharing;
	}

}
